package com.bwda.dsrs.systemservice.controller;

import com.bwda.dsrs.base.centerbase.response.ResponseEntity;
import com.bwda.dsrs.base.util.CopyUtil;
import com.bwda.dsrs.systemservice.annotations.IgnoreClientToken;
import com.bwda.dsrs.systemservice.aspect.LogTypeEnum;
import com.bwda.dsrs.systemservice.aspect.Loggable;
import com.bwda.dsrs.systemservice.domain.exception.SystemServiceException;
import com.bwda.dsrs.systemservice.domain.po.gtasks.GtasksPo;
import com.bwda.dsrs.systemservice.domain.vo.gtasks.GtasksVo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

/**
 * @author yangjun
 * @date 2019/3/18
 */

@IgnoreClientToken
@RestController
public class HelloController extends BaseController{

    @RequestMapping(value = "/hello4", method = {RequestMethod.POST})
    public String hello4() {
        return "hello ，this is first messge. I  am from user-center hello4";
    }

    @RequestMapping(value = "/hello5", method = {RequestMethod.POST})
    public String hello5() {
        return "hello ，this is first messge. I  am from user-center hello5";
    }

    @GetMapping(value = "/hello3")
    public String printServicea() {
        return "I am hello service 3DWASSFGTRJHUYTR---------------";
    }

    @ApiOperation(value = "查询待办任务",notes = "查询",httpMethod = "GET")
    @Loggable(descp = "查询待办任务",type = LogTypeEnum.QUERY,include = "")
    @RequestMapping(value = "/api/demo/createUser", method = {RequestMethod.GET, RequestMethod.POST})
    public ResponseEntity<String> query() throws SystemServiceException {

        return getSuccessResult();
    }
}




















